



                      Danny Goodman's 
                JavaScript Bible 4th Edition
                        Appendix A
           Quick Reference and Compatibility Guide
                      1 February 2001


        BOOKLET CONFIGURATION FOR MANUAL-FEED PRINTERS

             PRINTING AND COLLATING INSTRUCTIONS
             -----------------------------------

           Read this entire document before printing. 
                 
      
      
Requirements
------------
The Quick Reference document requires the Adobe Acrobat Reader 3.0 or later to display and print.  If you do not have this software, it is available for free downloading from http://www.adobe.com.

       -----------------------------------------------
      | IMPORTANT! Adobe Acrobat Page Setup Settings  |
      | --------------------------------------------  |
      | Before you print any part of the Quick        |
      | Reference document, make sure that the        |
      | Page Setup dialog box settings are set to     |
      | LANDSCAPE orientation. If your printer        |
      | provides multiple paper size options (e.g.,   |
      | a regular and 'small' version of U.S.Letter   |
      | or A4), choose the regular paper size. This   |
      | setting minimizes the margins, and lets the   |
      | page content scale up to the largest possible |
      | size to fit your printer's paper.             |
       -----------------------------------------------

The document prints on 14 sides of letter-sized paper. For optimum convenience and portability, the document can be printed on the front and back of printer paper (see below for combinations), and these sheets can be stapled together in booklet form so that either the short or long edge of the booklet serves as the binding. My personal preference is to bind along the long edge so that I flip pages up and down.

There is a lot of small print in the Quick Reference document (making it difficult to use on the video monitor), so I recommend a 600 dpi printer. Portions of the document may not be readable at lesser resolutions.

In the instructions below, I assume you have a printer that accepts paper from an automatic paper tray as well as from manual feed. Printing on two sides of a page can get confusing, and the process differs with each printer and with your choice of binding in booklet format.  Later in these instructions, I provide an explanation of the process for my laser printer as an example.

NOTE: Page layout for this document is not optimized for automatic
duplex printers. Two other versions of this document are optimized for
duplex printing in booklet form.

PDF Document Structure
----------------------
As described in the text of the JavaScript Bible 4th Edition, there are essentially three Document Object Models for which we can write scripts:

  * Backward compatible to earliest versions (plus NN4 
    oddities).
  * Microsoft Internet Explorer 4.0 and later (IE4+).
  * The W3C DOM as implemented (in varying degrees) in 
    IE5+ and NN6.

Then there is JavaScript, itself:

  * JavaScript core language
  
The booklet form of the Quick Reference document is laid out on 14 sides of paper. You can print out one side per piece of paper, but as described below, it is more compact to print on both sides of a sheet, reducing the entire quick reference to a total of seven pieces of paper.

Each side (except the cover and back page) has a tiny Side Number printed in an upper corner. These numbers will help you print and assemble the Quick Reference. The 14 sides contain the following information:

   Side Number      Content
   -----------      ---------------------------------------
       (1)          Cover
        2           Core JavaScript Quick Reference
        3           Core JS (cont'd); Style Properties
        4           Orig. DOM Quick Reference (Page 1 of 2)
        5           Orig. DOM Quick Reference (Page 2 of 2)
        6           IE4+ DOM Quick Reference (Page 1 of 4)
        7           IE4+ DOM Quick Reference (Page 2 of 4)
        8           IE4+ DOM Quick Reference (Page 3 of 4)
        9           IE4+ DOM Quick Reference (Page 4 of 4)
       10           W3C DOM Quick Reference (Page 1 of 4)
       11           W3C DOM Quick Reference (Page 2 of 4)
       12           W3C DOM Quick Reference (Page 3 of 4)
       13           W3C DOM Quick Reference (Page 4 of 4)
      (14)          IE DOM Graphical Roadmap

To simplify the printing process, however, the PDF document is structured so that all odd-numbered Sides come first, followed by all even-numbered Sides. In other words, the Side numbers do not correspond to PDF document page numbers.

You do not have to print the entire Quick Reference. Instructions here, however, are for printing the entire document. If you wish to print only portions that apply to your development, you'll have to map out the sequence of pages to print. You will probably derive ideas about how to go about this by continuing reading here.

Printed Document Structure
--------------------------
The Quick Reference is designed to display two-page spreads (all pages print in landscape -- wide -- orientation). For example, when bound along the short side of the paper, the first two pages of the IE4+ DOM Quick Reference look like Figure 1 (Sheet numbers shown in the top corners):

         ------------- ------------- 
        |            6|7            | 
        |IE4+ DOM     |     IE4+ DOM|
        |Page 1 of 4  |  Page 2 of 4|
        |             |             |          (Figure 1.)
        |             |             |
         ------------- -------------

If you bind along the long edges, the same spread would look like the one shown in Figure 2.

         ------------- 
        |            6|
        |IE4+ DOM     |
        |Page 1 of 4  |
        |             |
        |             |
         ------------- 
        |7            |
        |     IE4+ DOM|
        |  Page 2 of 4|
        |             |          (Figure 2.)
        |             |
         -------------


Your choice of binding edge has a big influence on the way you feed paper into your printer. In both sets, pages 1 through 7 are fed through the automatic paper tray. But the second, manual-feed, pass is fed either in normal orientation (short edge binding) or inverted (long edge binding).

A Practice Sheet
----------------
To get to know your printer's paper handling characteristics, experiment with just one page. Print only Page 1 of the PDF Document (in the Print dialog box, enter a Print Range "From 1 To 1"). Let this page print from the automatic feeder of your printer. Now you will print the back side, which is PDF document Page 8:

-- SHORT Edge Binding Back Side Printing Test
To print the back side of the page via the manual feed, imagine that you are feeding a piece of letterhead paper, with the blank side of the Reference page being the side to receive the letter. Place the page into the manual feeder, making sure that the printed side is FACING THE SAME WAY with respect to the orientation of the page about to be printed.

Here's how it works on my laser printer: Looking at the already-printed side in landscape orientation, I flip the page from left to right. With the blank side up, I slide the page into the manual feeder, just as if it were a piece of letterhead (letterhead paper is fed face up in my manual feeder). If my feeder had one of those turned-corner page icons on it, the lines representing text would be on the large part of the icon, not on the turned corner (your printer's manual feeder may be the opposite).

If you are successful, the top of both sides' content will be along the same edge.

-- LONG Edge Binding Back Side Printing Test
To print the back side of the page via the manual feed, imagine that you are feeding a piece of letterhead paper, with the blank side of the Reference page being the side to receive the letter. Place the page into the manual feeder, making sure that the printed side is UPSIDE DOWN with respect to the orientation of the page about to be printed.

Here's how it works on my laser printer: Looking at the already-printed side in landscape orientation, I flip the page from top to bottom. With the blank side up, I slide the page into the manual feeder, just as if it were a piece of letterhead (letterhead paper is fed face up in my manual feeder). If my feeder had one of those turned-corner page icons on it, the lines representing text would be on the large part of the icon, not on the turned corner (your printer's manual feeder may be the opposite).

If you are successful, the each side will be upside down with respect to the one on the back side.


Finally -- and this is the hard part -- once you have discovered the right combination of flipping and feeding for your desired binding method, remember what it is so that you can apply it to the rest of the pages.

Printing the Reference
----------------------
You are now ready to perform the final printing.

1. Print only the front sides (PDF document pages 
   1 through 7) via automatic feed. These are all of 
   the odd-numbered Sides.

2. Print PDF pages 8 through 14 (even-numbered Sides) via 
   manual feed, and feed the backs of pages according 
   to the following sequence:
   
       Back Side To Print           Print on Back of Side
       ------------------           ---------------------
                2                           Cover
                4                             3
                6                             5
                8                             7
               10                             9
               12                            11
               14 (diagram)                  13


   If you are unsure about orientation of the back sides, 
   you can print the back sides one page at a time and 
   verify that everything comes out the way you want it.

Assembling the Reference
------------------------
Sort the pages so that the cover page is face up on top of the pile, and, as you lift each page, the next odd-numbered Side is also face up (3, 5, 7, etc.).

Verify that the even-numbered Sides are printed in the desired orientation:

   * For binding along the SHORT edge, grop the left short edge,
     and flip the pages. You should see two-page spreads 
     as shown in Figure 1.
   * For binding along the LONG edge, grip the top long edge, 
     and flip the pages. You should see two-page spreads 
     as shown in Figure 2.

Carefully staple the pages together along the desired edge, and NO MORE THAN ABOUT ONE-QUARTER INCH FROM THE EDGE. For the long edge, five equally-spaced staples should do the job; for the short edge, three evenly-spaced staples are sufficient.

For your safety, cover the back side of the staples with cellophane or clear packing tape. The goal is to prevent the sharp ends of staples from opening up and puncturing valuable possessions, such as your fingers.

Folding the Reference
---------------------
Regardless of the edge you use to bind your Quick Reference, you will find the booklet easier to use if you crease the pages near the binding. Here is how to do it:

1. With the document resting on a desk top and the cover showing face up, 
   open the first two pieces of paper.
2. Open the booklet all the way, and tug firmly until the top pages
   nearly begin creasing on their own.
3. Finish the job by folding the pages back completely, trying to maintain
   a straight crease edge if you can.
4. Open each succeeding page and fold it back along the creased edge.

Maintaining the Reference
-------------------------
As with any publication, the better your binding, the longer the document will last. A good taping job along the stapled edge will lengthen the life of your Quick Reference.

You always have the "comfort" of being able to print and assemble a new set. But by that time, you will have forgotten how your printer wants to print the back sides, and you'll go through the practice session once more.


Updated versions of this document are available at: www.dannyg.com/javascript
Comments and suggestions welcome: roadmap@dannyg.com


Copyright 2001 Danny Goodman (www.dannyg.com). All Rights Reserved.
